<?php
header('Access-Control-Allow-Origin:*');
set_time_limit(300);
defined('IN_CMS') or exit('No permission resources.');
//模型缓存路径
define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR);
//定义在单独操作内容的时候，同时更新相关栏目页面
define('RELATION_HTML',true);
$db = pc_base::load_model('link_model');
/*include_once "../cms/model/content_model.class.php";
$db = new content_model();*/
//$db->set_model(1);
$order =    "id desc";
$page = 1;
$pagesize = 10;
$catid = $_REQUEST['catid'];
$where  =   "catid=$catid and status=99";
$limit =   $_REQUEST['limit'] ?? 10;
$datas = $db->select($where = '', $data = '*', $limit, $order = 'linkid desc', $group = '', $key='');
dr_json(200,'success',$datas);
exit;;


?>